#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2022-1-24 14:45
# @Author : huabao.tan
# @File : base_key.py
# @Software: PyCharm
import json

import requests

class Key:

    def  get_request(self, url, params=None):
        return requests.get(url, params).json()

    def post_request(self, url, data=None, headers=None):
        return requests.post(url=url, data=json.dumps(data), headers=headers)

